﻿package com.pool.events
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Scott
	 */
	public class LoginEvent extends Event
	{
		public static const LOGIN:String = "Login";
		public static const REGISTER:String = "Register";
		/** RPC调用，返回成功	*/
		public static const LOGINOK:String = "SpLibObjRPCRetOk";
		
		/** RPC调用，返回失败	*/
		public static const LOGINERR:String = "SpLibObjRPCRetErr";
		
		public static const GETDATAOK:String="getuserdataok";
		
		public static const GETDATAERR:String = "getuserdataerr";
		
		public var m_Agv:Array;
		private var _userName:String;
		private var _userPwd:String;
		
		public function LoginEvent(type:String,m_Agv:Array=null) 
		{
			super(type);
			this.m_Agv = m_Agv;
		}
		
		public function set userName(value:String):void 
		{
			this._userName = value;
		}
		
		public function get userName():String
		{ 
			return this._userName;
		}
		
		public function set userPwd(value:String):void 
		{
			this._userPwd = value;
		}
		
		public function get userPwd():String
		{ 
			return this._userPwd;
		}
	}

}